package com.tulingxueyuan.mbp;

import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import com.tulingxueyuan.mbp.service.EmployeeService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @author :tangweiliang
 * @date : 2023/7/16 16:30
 * 未来的你会感谢现在努力的自己
 */
@SpringBootApplication
public class QuickStartApplication {

    static EmployeeService employeeService;

    @Autowired
    public void setEmployeeService(EmployeeService employeeService){
        QuickStartApplication.employeeService = employeeService;
    }

    public static void main(String[] args) {
        SpringApplication.run(QuickStartApplication.class, args);
        System.out.println(employeeService.getById(1));
    }
}
